Release 10.1A: OpenEdge Development:
.NET Open Clients
Defining the return type for a user-defined function
You must specify the return type for a user-defined function as part of setting up the parameters. You can set this return type using the
ReturnTypeproperty of theProgress.Open4GL.Proxy.ParamArrayobject:
You must set this property to the class constant defined in
Progress.Open4GL.Parameterthat corresponds to the Progress 4GL data type returned by the user-defined function, as shown in Table 8–3.
Table 8–3: User-defined function return types for the OpenAPI Progress data type Progress.Open4GL.Parameterclass constantNote:
LONGCHAR,MEMPTR,TABLE,TABLE-HANDLE,DATASET, andDATASET-HANDLEcannot be return types of a user-defined function.For example, to set the return type for a user-defined function to the 4GL
INTEGERdata type, you can set theReturnTypeproperty on aParamArrayobject,parms, as follows:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |